package com.bw.im.msg

import android.widget.ImageView
import com.bw.im.R
import com.bw.im.msg.entity.MsgEntity
import com.bw.quickadapter.BaseQuickAdapter
import com.bw.quickadapter.BaseViewHolder
import com.example.glide_sdk.ImgLoad

class MsgAdapter : BaseQuickAdapter<MsgEntity>(R.layout.item_msg) {
    override fun convert(holder: BaseViewHolder?, item: MsgEntity?) {
        holder!!.let {
            val img : ImageView = it.getView(R.id.msg_head_img)
            ImgLoad.loadCirImg("http://192.168.31.157:8080/fileDownload?fileName=icon2.png",img)
            holder.setText(R.id.msg_title_tv,item!!.msgValues)
        }
    }
}